package com.lsf.dunlian.activity;

import android.app.Activity;
import android.graphics.Color;
import android.os.Build;
import android.view.View;

import com.lsf.dunlian.R;

public class BaseUtils {
    public  static  void setStatusBar(Activity activity){
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
//            activity.getWindow().setStatusBarColor(activity.getResources().getColor(R.color.gray));//设置状态栏颜色
//            activity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);//实现状态栏图标和文字颜色为暗色
//             activity.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);//实现状态栏图标和文字颜色为暗色
//            activity.getWindow().setStatusBarColor(Color.TRANSPARENT);
        }
    }
}
